import React from 'react'
import ReactDOM from 'react-dom'
class App extends React.Component {
  
  render () {
    return <h1>函数式组件</h1>
  }
}

// 类的调用方式
const app = new App().render()

ReactDOM.render(
  app,
  document.querySelector('#root')
)